﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _08.IntDoubleOrString
{
    class intDoubleOrString
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Choose what type you want to insert.Int,Double or String");
            Console.WriteLine("Write 1 for integer, 2 for double and 3 for string.Then you write a number");
            int choice = int.Parse(Console.ReadLine());
            double num;
            string str;
            int integer;
            switch (choice)
            {
                case 1: Console.WriteLine("Insert an integer"); integer = int.Parse(Console.ReadLine()); integer++; Console.WriteLine("The new number is {0}",integer) ; break;
                case 2: Console.WriteLine("Insert a double"); num = double.Parse(Console.ReadLine()); num++; Console.WriteLine("The new number is {0}", num); ; break;
                case 3: Console.WriteLine("Insert a string"); str = Console.ReadLine(); Console.WriteLine("The new string is " + str + "*"); ; break;
                default: Console.WriteLine("Error!!!");
                    break;
            }
        }
    }
}
